home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Technology Seed / ADC Seed CD - July 1999.toast / Carbon SDK 1.0d10c3 / Sample Code / AppearanceSample / MegaPane.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-05-01  |  905 b   |  52 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        MegaPane.h
  3.  
  4.     Contains:    Base class for panes in our MegaDialog example.
  5.  
  6.     Version:    Appearance 1.0 SDK
  7.  
  8.     Copyright:    © 1997 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     File Ownership:
  11.  
  12.         DRI:                Edward Voas
  13.  
  14.         Other Contact:        7 of 9, Borg Collective
  15.  
  16.         Technology:            OS Technologies Group
  17.  
  18.     Writers:
  19.  
  20.         (edv)    Ed Voas
  21.  
  22.     Change History (most recent first):
  23.  
  24.          <1>     9/11/97    edv        First checked in.
  25. */
  26.  
  27. #pragma once
  28.  
  29. #include <Dialogs.h>
  30. #include <CarbonEvents.h>
  31.  
  32. class MegaPane
  33. {
  34.     public:
  35.             MegaPane( DialogPtr dialog, SInt16 origItems );
  36.         virtual ~MegaPane();
  37.         
  38.         virtual void    ItemHit( SInt16 item );
  39.  
  40.         virtual void    RequestIdleTime( EventTimerInterval interval );
  41.         virtual void    Idle();
  42.     
  43.     protected:
  44.         static pascal void        Timer( EventLoopTimerRef inRef, void* userData );
  45.         
  46.         DialogPtr        fDialog;
  47.         SInt16            fOrigItems;
  48.         
  49.         EventLoopTimerUPP    fTimerProc;
  50.         EventLoopTimerRef    fTimerRef;
  51. };
  52.